export default function AxColumnPermission(columns) {
  const permissions = parseInt(localStorage.getItem('ax-auth-permissions'));

  /** 有权限的列 */
  const permissionColumns = columns.filter(
    i => !i.permissions || (permissions & i.permissions) > 0,
  );

  return permissionColumns;
}
